package com.yeyks.config.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminAppInfo对象", description="")
public class AdminAppInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类型：Android，iOS")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "版本信息")
    @TableField("version")
    private String version;

    @ApiModelProperty(value = "更新连接")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "是否启用 0:不启用 1:启用")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "服务类型（admin,app)")
    @TableField("server_type")
    private String serverType;

    @ApiModelProperty(value = "版本的code")
    @TableField("version_code")
    private String versionCode;

    @ApiModelProperty(value = "升级理由")
    @TableField("reason")
    private String reason;

    @ApiModelProperty(value = "0 不更新，1更新，2强制更新")
    @TableField("forced_update")
    private Integer forcedUpdate;


    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String VERSION = "version";

    public static final String PATH = "path";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String SERVER_TYPE = "server_type";

    public static final String VERSION_CODE = "version_code";

    public static final String REASON = "reason";

    public static final String FORCED_UPDATE = "forced_update";

}
